﻿var State = [{ id: 1, text: '启用' }, { id: 0, text: '禁用'}];
var StateAll = [{ id: 1, text: '启用' }, { id: 0, text: '禁用' }, { id: -1, text: '全部'}];
var StateShow = [{ id: 1, text: '<font color="#009900">启用</font>' }, { id: 0, text: '<font color="#ff3300">禁用</font>'}];
function onStateRenderer(e) {
    for (var i = 0; i < StateShow.length; i++) {
        var s = StateShow[i];
        if (s.id == e.value)
            return s.text;
    }
    return "";
}

var DictionaryType = [{ id: 1, text: '单位行业' }, { id: 2, text: '单位性质' }, { id: 3, text: '地区' }, { id: 4, text: '学历' }, { id: 5, text: '性别' }, { id: 6, text: '工作性质' }, { id: 7, text: '招聘对象'}];
var DictionaryTypeAll = [{ id: 1, text: '单位行业' }, { id: 2, text: '单位性质' }, { id: 3, text: '地区' }, { id: 4, text: '学历' }, { id: 5, text: '性别' }, { id: 6, text: '工作性质' }, { id: 7, text: '招聘对象' }, { id: -1, text: '全部'}];
function onDictionaryTypeRenderer(e) {
    for (var i = 0; i < DictionaryType.length; i++) {
        var d = DictionaryType[i];
        if (d.id == e.value)
            return d.text;
    }
    return "";
}

var LogType = [{ id: 0, text: '登录' }, { id: 1, text: '新增' }, { id: 2, text: '修改' }, { id: 3, text: '删除' }, { id: 4, text: '注销' }, { id: -1, text: '全部'}];
function onLogTypeRenderer(e) {
    for (var i = 0; i < LogType.length; i++) {
        var l = LogType[i];
        if (l.id == e.value)
            return l.text;
    }
    return "";
}

var PersonType = [{ id: 0, text: '未审会员' }, { id: 1, text: '已审会员' }, { id: 3, text: '简历开启' }, { id: 4, text: '简历关闭' }, { id: 5, text: '简历半开启' }, { id: -1, text: '全部'}];
function onPersonTypeRenderer(e) {
    for (var i = 0; i < PersonType.length; i++) {
        var p = PersonType[i];
        if (p.id == e.value)
            return p.text;
    }
    return "";
}

var PersonStateAll = [{ id: 0, text: '未审' }, { id: 1, text: '已审' }, { id: -1, text: '全部'}];
var PersonState = [{ id: 0, text: '<font color="#ff3300">未审</font>' }, { id: 1, text: '<font color="#009900">已审</font>' }];
function onPersonStateRenderer(e) {
    for (var i = 0; i < PersonState.length; i++) {
        var p = PersonState[i];
        if (p.id == e.value)
            return p.text;
    }
    return "";
}

var PastAll = [{ id: 0, text: '未审' }, { id: 1, text: '已审通过' }, { id: 2, text: '已审不通过' }, { id: -1, text: '全部'}];
var Past = [{ id: 0, text: '未审' }, { id: 1, text: '<font color="#009900">通过</font>' }, { id: 2, text: '<font color="#ff3300">不通过</font>'}];
function onPastRenderer(e) {
    for (var i = 0; i < Past.length; i++) {
        var p = Past[i];
        if (p.id == e.value)
            return p.text;
    }
    return "";
}

var HideAll = [{ id: 0, text: '显示' }, { id: 1, text: '隐藏' }, { id: -1, text: '全部'}];
var Hide = [{ id: 0, text: '显示' }, { id: 1, text: '隐藏'}];
var HideShow = [{ id: 0, text: '<font color="#009900">显示</font>' }, { id: 1, text: '<font color="#ff3300">隐藏</font>'}];
function onHideRenderer(e) {
    for (var i = 0; i < HideShow.length; i++) {
        var h = HideShow[i];
        if (h.id == e.value)
            return h.text;
    }
    return "";
}

var LinkTypeAll = [{ id: 1, text: '主网站' }, { id: 2, text: '党员之家' }, { id: 3, text: '高层次人才' }, { id: 4, text: 'HR协会' }, { id: 5, text: '显示' }, { id: 6, text: '隐藏' }, { id: -1, text: '全部'}];
var LinkType = [{ id: 1, text: '主网站' }, { id: 2, text: '党员之家' }, { id: 3, text: '高层次人才' }, { id: 4, text: 'HR协会'}];
function onLinkTypeRenderer(e) {
    for (var i = 0; i < LinkType.length; i++) {
        var l = LinkType[i];
        if (l.id == e.value)
            return l.text;
    }
    return "";
}

var Top = [{ id: 0, text: '不置顶' }, { id: 1, text: '置顶'}];
function onTopRenderer(e) {
    for (var i = 0; i < Top.length; i++) {
        var t = Top[i];
        if (t.id == e.value)
            return t.text;
    }
    return "";
}

var AdTypeAll = [{ id: 1, text: '资讯左侧图片广告' }, { id: 2, text: 'LOGO条右侧广告' }, { id: 3, text: '导航条下侧通栏广告' }, { id: 4, text: '搜索栏下侧通栏广告' }, { id: 5, text: 'VIP招聘下侧通栏广告' }, { id: 6, text: '左右两侧挂边广告' }, { id: 7, text: '显示' }, { id: 8, text: '隐藏' }, { id: -1, text: '全部'}];
var AdType = [{ id: 1, text: '资讯左侧图片广告' }, { id: 2, text: 'LOGO条右侧广告' }, { id: 3, text: '导航条下侧通栏广告' }, { id: 4, text: '搜索栏下侧通栏广告' }, { id: 5, text: 'VIP招聘下侧通栏广告' }, { id: 6, text: '左右两侧挂边广告'}];
function onAdRenderer(e) {
    for (var i = 0; i < AdType.length; i++) {
        var a = AdType[i];
        if (a.id == e.value)
            return a.text;
    }
    return "";
}

var LevelAll = [{ id: 1, text: '普通会员' }, { id: 2, text: '中级会员' }, { id: 3, text: '高级会员' }, { id: 4, text: '试用会员' }, { id: -1, text: '全部'}];
var Level = [{ id: 1, text: '普通会员' }, { id: 2, text: '中级会员' }, { id: 3, text: '高级会员' }, { id: 4, text: '试用会员'}];
function onLevelRenderer(e) {
    for (var i = 0; i < Level.length; i++) {
        var l = Level[i];
        if (l.id == e.value)
            return l.text;
    }
    return "";
}

var Months = [{ id: 1, text: '1' }, { id: 2, text: '2' }, { id: 3, text: '3' }, { id: 4, text: '4' }, { id: 5, text: '5' }, { id: 6, text: '6' }, { id: 7, text: '7' }, { id: 8, text: '8' }, { id: 9, text: '9' }, { id: 10, text: '10' }, { id: 11, text: '11' }, { id: 12, text: '12'}];

var NewsCentre = [{ id: 11, text: '市场快讯' }, { id: 12, text: '热点招聘' }, { id: 13, text: '通知公告'}];
function onNewsCentreRenderer(e) {
    for (var i = 0; i < NewsCentre.length; i++) {
        var n = NewsCentre[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewsAgent = [{ id: 21, text: '服务介绍' }, { id: 22, text: '办事指南'}];
function onNewsAgentRenderer(e) {
    for (var i = 0; i < NewsAgent.length; i++) {
        var n = NewsAgent[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewsReview = [{ id: 31, text: '政策法规' }, { id: 32, text: '最新消息' }, { id: 33, text: '职称考试' }, { id: 34, text: '职称评审' }, { id: 37, text: '表格下载' }, { id: 38, text: '业务指南' }];
function onNewsReviewRenderer(e) {
    for (var i = 0; i < NewsReview.length; i++) {
        var n = NewsReview[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewsFile = [{ id: 35, text: '通知公告' }, { id: 36, text: '文件公布' }];
function onNewsFileRenderer(e) {
    for (var i = 0; i < NewsFile.length; i++) {
        var n = NewsFile[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewsParty = [{ id: 41, text: '通知公告' }, { id: 42, text: '情况通报' }, { id: 43, text: '时政快递' }, { id: 44, text: '网上党校' }, { id: 45, text: '学习园地' }, { id: 46, text: '党员风采' }, { id: 47, text: '支部活动' }, { id: 48, text: '办事指南'}];
function onNewsPartyRenderer(e) {
    for (var i = 0; i < NewsParty.length; i++) {
        var n = NewsParty[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewsSend = [{ id: 51, text: '服务介绍' }, { id: 52, text: '办事指南' }, { id: 53, text: '通知公告' }];
function onNewsSendRenderer(e) {
    for (var i = 0; i < NewsSend.length; i++) {
        var n = NewsSend[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewsStudent = [{ id: 61, text: '就业政策' }, { id: 62, text: '就业指导' }, { id: 63, text: '办事指南'}];
function onNewsStudentRenderer(e) {
    for (var i = 0; i < NewsStudent.length; i++) {
        var n = NewsStudent[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewsHR = [{ id: 70, text: '图片新闻' }, { id: 71, text: '协会简介' }, { id: 72, text: '入会申请' }, { id: 73, text: '协会章程' }, { id: 74, text: '选举办法' }, { id: 75, text: '组织结构' }, { id: 76, text: '通知公告' }, { id: 77, text: '协会动态' }, { id: 78, text: '经验交流' }, { id: 79, text: '常务理事' }, { id: 710, text: '缴费办法'}];
function onNewsHRRenderer(e) {
    for (var i = 0; i < NewsHR.length; i++) {
        var n = NewsHR[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewsHigh = [{ id: 81, text: '湖州简介' }, { id: 82, text: '工作动态' }, { id: 83, text: '政策文件' }, { id: 84, text: '创业平台' }, { id: 85, text: '人才需求' }];
function onNewsHRRenderer(e) {
    for (var i = 0; i < NewsHR.length; i++) {
        var n = NewsHR[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var NewClick = [{ id: 1, text: '隐藏' }, { id: 2, text: '置顶' }, { id: 3, text: '描红' }, { id: 4, text: '最新'}];
var CompanyIndustry = [{ id: '1', text: '生物医药' }, { id: '2', text: '新能源' }, { id: '3', text: '先进装备' }, { id: '4', text: '金属新材' }, { id: '5', text: '特色纺织' }, { id: '6', text: '绿色家居' }, { id: '7', text: '其他'}];
var CompanyCategory = [{ id: '1', text: '重点骨干企业' }, { id: '2', text: '工业行业龙头骨干企业' }, { id: '3', text: '服务业优强企业' }, { id: '4', text: '高新技术企业'}];
var Pay = [{ id: 1, text: '1000~1500' }, { id: 2, text: '1500~2000' }, { id: 3, text: '2000~3000' }, { id: 4, text: '3000~5000' }, { id: 5, text: '5000~10000' }, { id: 6, text: '10000以上'}];
var WorkKind = [{ id: '见习', text: '见习' }, { id: '实习', text: '实习'}]
var Base = [{ id: 1, text: '见习基地' }, { id: 2, text: '团市委把关企业'}];
function onBaseRenderer(e) {
    for (var i = 0; i < Base.length; i++) {
        var n = Base[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var Pay2 = [{ id: 0, text: '无' }, { id: 1, text: '500元以下' }, { id: 2, text: '500-1000元' }, { id: 3, text: '1000-1500元' }, { id: 4, text: '1500-2000元' }, { id: 5, text: '2000-2500元' }, { id: 6, text: '2500-3000元' }, { id: 7, text: '3000元以上'}];
function onPay2Renderer(e) {
    for (var i = 0; i < Pay2.length; i++) {
        var n = Pay2[i];
        if (n.id == e.value)
            return n.text;
    }
    return "";
}
var JiaoNa = [{ id: '缴纳', text: '缴纳' }, { id: '不缴纳', text: '不缴纳'}]